conv_yHalf_yF (conversion, src, dst, samples * 4);
}
+#define conv_rgbAHalf_rgbAF conv_rgbaHalf_rgbaF
+
static inline void
conv_yF_yHalf (const Babl *conversion,const float *src, uint16_t *dst, long samples)
{
conv_yF_yHalf (conversion, src, dst, samples * 4);
}
+#define conv_rgbAF_rgbAHalf conv_rgbaF_rgbaHalf
+
static void singles2halfp2(void *target, const void *source, long numel)
{
uint16_t *hp = (uint16_t *) target; // Type pun output as an unsigned 16-bit int
babl_component ("B"),
babl_component ("A"),
NULL);
+ const Babl *rgbAF_linear = babl_format_new (
+ babl_model ("RaGaBaA"),
+ babl_type ("float"),
+ babl_component ("Ra"),
+ babl_component ("Ga"),
+ babl_component ("Ba"),
+ babl_component ("A"),
+ NULL);
+ const Babl *rgbAHalf_linear = babl_format_new (
+ babl_model ("RaGaBaA"),
+ babl_type ("half"),
+ babl_component ("Ra"),
+ babl_component ("Ga"),
+ babl_component ("Ba"),
+ babl_component ("A"),
+ NULL);
+ const Babl *rgbAF_gamma = babl_format_new (
+ babl_model ("R'aG'aB'aA"),
+ babl_type ("float"),
+ babl_component ("R'a"),
+ babl_component ("G'a"),
+ babl_component ("B'a"),
+ babl_component ("A"),
+ NULL);
+ const Babl *rgbAHalf_gamma = babl_format_new (
+ babl_model ("R'aG'aB'aA"),
+ babl_type ("half"),
+ babl_component ("R'a"),
+ babl_component ("G'a"),
+ babl_component ("B'a"),
+ babl_component ("A"),
+ NULL);
+
const Babl *rgbaHalf_linear = babl_format_new (
babl_model ("RGBA"),
babl_type ("half"),
babl_conversion_new (src ## _gamma, dst ## _gamma, "linear", conv2_ ## src ## _ ## dst, NULL); \
}
+ CONV(rgbAHalf, rgbAF);
+ CONV(rgbAF, rgbAHalf);
CONV(rgbaHalf, rgbaF);
CONV(rgbHalf, rgbF);
CONV(yaHalf, yaF);